import { BASE_URL } from './index.js'
import http from '../utils/http.js'

export const loginByUsername = data => http.request('POST', `${BASE_URL}/login`, data)

export const verifiToken = token => http.request('GET', `${BASE_URL}/token`, token)